﻿

using System;
using System.Collections.Generic;

namespace Zhongy
{
    public static  class Config
    {

        //--------------- 网络配置 ----------------

        /// <summary> 协议版本 </summary>
        public const string protocolVersion = "1.0.0.0";

        /// <summary> 游戏ID </summary>
        public const string gameID = "MK10_Butterfly";
        //public const string gameID = "SK16_EntionWars";

        /// <summary> tcp监听端口号 </summary>
        public const int tcpPort = 16610;

        /// <summary> 广播数量 </summary>
        public const int broadCount = 10;


        //--------------- 游戏配置 ----------------

        /// <summary> 游戏支持暂停 </summary>
        public const int SupportPause = 1; //是否支持暂停，0表示不支持，1表示支持

        /// <summary> 游戏默认时间 </summary>
        public static List<object> DefaultSendOptionTime = new List<object>() {10, 60, 120};

        /// <summary> 游戏默认难度 </summary>
        public static List<object> DefaultSendOptionDifficulty = null;// new List<object>() {0, 1, 2};


        /// <summary>
        /// 得到选项值类型
        /// </summary>
        /// <param name="set">选项值列表</param>
        /// <returns> //选项类型，0:int,1:float,2:string</returns>
        public enum DefaultSendOptionType
        {
            INT = 0,
            FLOAT = 1,
            STRING = 2,
        }

    }

    public class GameConfig
    {
        public static int CurGameTime = 0;

        public static int CurGameDifficulty = 0;
    }
}
